﻿// See https://aka.ms/new-console-template for more information

using ORMDemo.Dal;
using ORMDemo.Model;
using System.Linq.Expressions;

Console.WriteLine("Hello, World!");
SqlHelper s = new SqlHelper();
//s.Find<CompanyModel>(1);
//CompanyModel c = new CompanyModel();
//s.Insert<CompanyModel>(c);
Expression<Func<CompanyModel, bool>> expression = c => c.Id > 10 && c.Name.Contains("XXX");
s.DeleteByParam(expression);